package demo1;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[] array = {9,1,2,5,7,4,8};
        Sort sort = new Sort();
        //sort.createHeap(array);
        sort.mergeSort(array);
        System.out.println(Arrays.toString(array));
    }
}
